﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Forum.Web.Admin.UForum.Member.List" %>
<%@ Import Namespace=" Forum.Entity.Member" %>
<%@ Register src="../../Common/Controls/Selecter.ascx" tagname="Selecter" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../Common/Style/Skin1/Pager.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/addnew.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal></span></a></li>
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/delete.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="删除"></asp:Literal></span></a></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="lblStatistic" runat="server" Text="Label"></asp:Label></div>
        <div class="right">
            登录名：<asp:TextBox ID="txtLoginName" runat="server" CssClass="txt" Width="80px"></asp:TextBox>&nbsp;
            昵称：<asp:TextBox ID="txtName" runat="server" CssClass="txt" Width="80px"></asp:TextBox>&nbsp;
            手机：<asp:TextBox ID="txtMobile" runat="server" CssClass="txt" Width="80px"></asp:TextBox>&nbsp;
            邮件：<asp:TextBox ID="txtEmail" runat="server" CssClass="txt" Width="80px"></asp:TextBox>&nbsp;
            <asp:Button ID="btnSerch" runat="server" Text="搜索" OnClick="btnSerch_Click" />
        </div>
    </div>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th>
                    用户名
                </th>
                <th>
                    所属组
                </th>
                <th>
                    昵称
                </th>
                <th>
                    邮箱
                </th>
                <th>
                    手机
                </th>
                <th>
                    发贴数
                </th>
                <th>
                    注册时间
                </th>
                <th>
                    积分
                </th>
                <th>
                    最后访问时间
                </th>
                <th>
                    修改
                </th>
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" OnItemDataBound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td>
                            <asp:HyperLink ID="lnkLoginName" runat="server" NavigateUrl="#" Text='<%# ((MemberBaseInfo)Eval("MemberBaseInfo")).LoginName %>'
                                EnableViewState="False"></asp:HyperLink>
                        </td>
                        <td>
                            <%#Eval("GroupName") %>&nbsp;
                        </td>
                        <td>
                            <%#((MemberBaseInfo)Eval("MemberBaseInfo")).Name%>&nbsp;
                        </td>
                        <td>
                            <%#((MemberBaseInfo)Eval("MemberBaseInfo")).Email%>&nbsp;
                        </td>
                        <td>
                            <%# ((MemberBaseInfo)Eval("MemberBaseInfo")).Mobile%>&nbsp;
                        </td>
                        <td>
                            <%# Eval("PostCount")%>
                        </td>
                        <td>
                            <%# Eval("RegisterTime","{0:d}")%>
                        </td>
                        <td>
                            <%# Eval("Score")%>
                        </td>
                        <td>
                            <%# Eval("LastVisitTime")%>
                        </td>
                        <td>
                            <asp:HyperLink ID="lnkEdit" runat="server">修改</asp:HyperLink>
                        </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="12" class="empty">
                            没有用户
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
  <div id="foot">
        <uc1:selecter id="Selecter1" runat="server" />
        <asp:Literal ID="litPager" runat="server"></asp:Literal></div>
    <div style="clear: both;" />   
    <div id="toolbar_bottom">
        <asp:Button ID="btnRefresh" runat="server" Text="Button" OnClick="btnRefresh_Click"
            CssClass="refresh" />
        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CausesValidation="False" />
    </div>
</asp:Content>
